import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
// 导入路由派发器
import router from '@/router'

// 导入ElementPlus
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
//导入ElementPlus所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App);
//使用路由派发器
app.use(router);
// 使用ElementPlus，并配置国际化
app.use(ElementPlus, {
    locale: zhCn
});

//使用全部element-plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

app.mount('#app')
